home *** CD-ROM | disk | FTP | other *** search
- Path: comma.rhein.de!serpens!not-for-mail
- From: mlelstv@serpens.rhein.de (Michael van Elst)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Amiga Memory Map Needed!!!
- Date: 31 Jan 1996 16:19:26 +0100
- Organization: dis-
- Message-ID: <4eo19u$e15@serpens.rhein.de>
- References: <310495eb@gauss.demon.co.uk> <1109oaw60.alamito@marketgraph.xs4all.nl> <4eisdt$dkn@sunsystem5.informatik.tu-muenchen.de> <4ejjom$na7@serpens.rhein.de> <4elp51$8vn@sunsystem5.informatik.tu-muenchen.de> <4em9d7$6m8@serpens.rhein.de> <4enme0$7as@btmpjg.god.bel.alcatel.be>
- NNTP-Posting-Host: serpens.rhein.de
-
- barnhoorn@nlev00 () writes:
-
- >OK, then I have yet another frequently asked question. In my program, I
- >launch a lot of 'threads' (using CreateTask). Why is it that my threads
- >can not access the dos.library? Do they need global data, which is available
- >for processes, but not for tasks? Obviously...
-
- They need local and global data, for example something that determines the
- current directory.
-
- >Then how can I easily
- >modify the CreateTask into a CreateProc?
-
- CreateProc always needs some kludges. Use CreateNewProc. That's a 2.0
- function that can be used pretty similar to CreateTask.
-
- >I once tried CreateProc but nothing happened (I mean, the new process
- >did not started to run). Is it that I need to trigger
- >the new process by sending it some kind of message?
-
- CreateProc create a task that executes code in a code segment. You probably
- loaded an existing program with LoadSeg. Normal programs check wether they
- are run by a shell. If not (and that's how it looks like when they are started
- by CreateProc) then they expect to be started by Workbench and wait for the
- WBStartup message.
-
- If you make your own code segment it could avoid waiting for a message.
-
- With CreateNewProc you do not need an extra code segment. You can create a
- process that starts with any routine that you write.
-
- This is also possible with CreateProc but you have to create a seglist
- manually. But who wants to support 1.3....
-
- >In other words: is there a CSAP-FAQ already somewhere?
-
- The startup mechanism is described in the RKRM. Since you have a C compiler
- you might also want to look at the source of the startup module.
-
- Regards,
- --
- Michael van Elst
-
- Internet: mlelstv@serpens.rhein.de
- "A potential Snark may lurk in every tree."
-